home *** CD-ROM | disk | FTP | other *** search
-
-
- Uhr
-
- by
-
- Stefan Sticht
-
- PUBLIC DOMAIN
-
-
- Uhr is a small, configurable digital clock (Uhr is the german word for
- clock). Uhr requires at least Kickstart 2.04 and Workbench 2.1. Just look
- if you have a locale.library, at least V38. If not, you can't use Uhr.
-
- Options and Tool Types:
-
- UPDATESECONDS / after how many seconds and
- UPDATEMICROS \ microseconds should the display be updated
-
- LEFT / top left
- TOP \ edge of window
-
- WINDOWTOFRONT - put Uhr's window to front if you update it
-
- PRIORITY - priority to run Uhr, I suggest you to use -1
-
- PUBSCREEN - pubscreen to open the window on
-
- FORMAT - format of Uhr's display, you may use the following
- commands and any text:
-
- %a - abbreviated weekday name
- %A - weekday name
- %b - abbreviated month name
- %B - month name
- %c - same as "%a %b %d %H:%M:%S %Y"
- %C - same as "%a %b %e %T %Z %Y"
- %d - day number with leading 0s
- %D - same as "%m/%d/%y"
- %e - day number with leading spaces
- %h - abbreviated month name
- %H - hour using 24-hour style with leading 0s
- %I - hour using 12-hour style with leading 0s
- %j - julian date
- %m - month number with leading 0s
- %M - the number of minutes with leading 0s
- %n - insert a linefeed
- %p - AM or PM strings
- %q - hour using 24-hour style
- %Q - hour using 12-hour style
- %r - same as "%I:%M:%S %p"
- %R - same as "%H:%M"
- %S - number of seconds with leadings 0s
- %t - insert a tab character
- %T - same as "%H:%M:%S"
- %U - week number, taking Sunday as first day of week
- %w - weekday number
- %W - week number, taking Monday as first day of week
- %x - same as "%m/%d/%y"
- %X - same as "%H:%M:%S"
- %y - year using two digits with leading 0s
- %Y - year using four digits with leading 0s
-
- examples:
-
- FORMAT "%a %d.%m.%y %X"
- FORMAT "Today is %a, %T"
-
- Please note that the resulting display is localized and
- variies with the language you selected in Locale.
-
- To start Uhr with every boot, put Uhr in your WBStartup drawer or add this
- line to your User-Startup:
-
- Run >NIL: <path>Uhr <options>
-
- e.g.
-
- Run >NIL: Tools:Uhr FORMAT "%a %d.%m.%y %X"
-
-
- Have fun with it!
-
-
- If you have any suggestions, bug reports etc., feel free to
- contact me at the below address.
-
-
- Stefan Sticht
- Bibereckerweg 40a
- D-8390 Passau 18
- Germany
-
- EMail: sticht@edith.deg.sub.org
- Fido: Stefan Sticht (2:246/200.4)
-